home *** CD-ROM | disk | FTP | other *** search
/ IRIX Patches 1995 June / SGI IRIX Patches 1995 Jun.iso / 5.3_patches / patchSG0000499 / patchSG0000499.idb / usr / include / abi / X11 / extensions / XSpeech.h.z / XSpeech.h
Encoding:
C/C++ Source or Header  |  1995-06-12  |  9.4 KB  |  435 lines

  1. /***************************************
  2.  lib interface
  3.  ***************************************/
  4.  
  5. #ifndef _XSPEECH_H_
  6. #define _XSPEECH_H_
  7.  
  8. #include    <X11/Xlibint.h>
  9. #include    "XSpeechProto.h"
  10.  
  11. #ifdef __cplusplus            /* do not leave open across includes */
  12. extern "C" {                    /* for C++ V2.0 */
  13. #endif
  14.  
  15. /* events */
  16.  
  17. typedef struct     {
  18.     int    type;            /* of event */
  19.     unsigned long serial;   /* # of last request processed by server */
  20.     Bool send_event;        /* true if this came frome a SendEvent request */
  21.     Display *display;        /* Display the event was read from */
  22.     /* int microphone ; */
  23.     Window focusWindow ;
  24.     Window pointerWindow ;
  25.     /* Window toplevelWindow ; */
  26.     int    first;            /* first event sent for this action */
  27.     Time time ;
  28.     /* INT16    x ; */
  29.     /* INT16    y ; */
  30.     INT16    root_x ;
  31.     INT16    root_y ;
  32. } XSpeechAnyEvent;
  33.  
  34. typedef struct     {
  35.     int    type;            /* of event */
  36.     unsigned long serial;   /* # of last request processed by server */
  37.     Bool send_event;        /* true if this came frome a SendEvent request */
  38.     Display *display;        /* Display the event was read from */
  39.     /* int microphone ; */
  40.     Window focusWindow ;
  41.     Window pointerWindow ;
  42.     /* Window toplevelWindow ; */
  43.     int    first;            /* first event sent for this action */
  44.     Time time ;
  45.     /* INT16    x ; */
  46.     /* INT16    y ; */
  47.     INT16    root_x ;
  48.     INT16    root_y ;
  49.     int identifier ;            /* identifier */
  50.     int score ;
  51. } XSpeechRecognitionEvent;
  52.  
  53. typedef struct     {
  54.     int    type;            /* of event */
  55.     unsigned long serial;   /* # of last request processed by server */
  56.     Bool send_event;        /* true if this came frome a SendEvent request */
  57.     Display *display;        /* Display the event was read from */
  58.     /* int microphone ; */
  59.     Window focusWindow ;
  60.     Window pointerWindow ;
  61.     /* Window toplevelWindow ; */
  62.     int    first;            /* first event sent for this action */
  63.     Time time ;
  64.     /* INT16    x ; */
  65.     /* INT16    y ; */
  66.     INT16    root_x ;
  67.     INT16    root_y ;
  68.     int identifier ;            /* identifier */
  69.     int score ;
  70. } XSpeechPoorMatchEvent ;
  71.  
  72. typedef struct     {
  73.     int    type;            /* of event */
  74.     unsigned long serial;   /* # of last request processed by server */
  75.     Bool send_event;        /* true if this came frome a SendEvent request */
  76.     Display *display;        /* Display the event was read from */
  77.     /* int microphone ; */
  78.     Window focusWindow ;
  79.     Window pointerWindow ;
  80.     /* Window toplevelWindow ; */
  81.     int    first;            /* first event sent for this action */
  82.     Time time ;
  83.     /* INT16    x ; */
  84.     /* INT16    y ; */
  85.     INT16    root_x ;
  86.     INT16    root_y ;
  87.     int identifier1 ;
  88.     int identifier2 ;
  89.     int score1 ;
  90.     int score2 ;
  91. } XSpeechAmbiguousMatchEvent ;
  92.  
  93. typedef struct     {
  94.     int    type;            /* of event */
  95.     unsigned long serial;   /* # of last request processed by server */
  96.     Bool send_event;        /* true if this came frome a SendEvent request */
  97.     Display *display;        /* Display the event was read from */
  98.     /* int microphone ; */
  99.     Window focusWindow ;
  100.     Window pointerWindow ;
  101.     /* Window toplevelWindow ; */
  102.     int    first;            /* first event sent for this action */
  103.     Time time ;
  104.     /* INT16    x ; */
  105.     /* INT16    y ; */
  106.     INT16    root_x ;
  107.     INT16    root_y ;
  108.     int errorType ;
  109. } XSpeechErrorEvent;
  110.  
  111. typedef struct     {
  112.     int    type;            /* of event */
  113.     unsigned long serial;   /* # of last request processed by server */
  114.     Bool send_event;        /* true if this came frome a SendEvent request */
  115.     Display *display;        /* Display the event was read from */
  116.     /* int microphone ; */
  117.     Window focusWindow ;
  118.     Window pointerWindow ;
  119.     /* Window toplevelWindow ; */
  120.     int    first;            /* first event sent for this action */
  121.     Time time ;
  122.     /* INT16    x ; */
  123.     /* INT16    y ; */
  124.     INT16    root_x ;
  125.     INT16    root_y ;
  126.     XID updateType ;
  127.     XID updateID ;
  128. } XSpeechUpdateEvent;
  129.  
  130. typedef struct     {
  131.     int    type;            /* of event */
  132.     unsigned long serial;   /* # of last request processed by server */
  133.     Bool send_event;        /* true if this came frome a SendEvent request */
  134.     Display *display;        /* Display the event was read from */
  135.     /* int microphone ; */
  136.     Window focusWindow ;
  137.     Window pointerWindow ;
  138.     /* Window toplevelWindow ; */
  139.     int    first;            /* first event sent for this action */
  140.     Time time ;
  141.     /* INT16    x ; */
  142.     /* INT16    y ; */
  143.     INT16    root_x ;
  144.     INT16    root_y ;
  145.     XID trainNeededID ;
  146. } XSpeechTrainNeededEvent;
  147.  
  148. /* prototypes */
  149. Bool XSpeechQueryExtension(
  150. #if NeedFunctionPrototypes
  151.     Display*        /* display */,
  152.     long*        /* event_base_return */,
  153.     long*        /* error_base_return */
  154. #endif
  155. );
  156.  
  157. Bool XSpeechQueryVersion(
  158. #if NeedFunctionPrototypes
  159.     Display*        /* display */,
  160.     long*        /* major_version_return */,
  161.     long*        /* minor_version_return */
  162. #endif
  163. );
  164.  
  165. Bool XSpeechThresholds(
  166. #if NeedFunctionPrototypes
  167.     Display*        /* display */,
  168.     long*        /* score */,
  169.     long*        /* delta */
  170. #endif
  171. );
  172.  
  173. Status XSpeechSetEnable(
  174. #if NeedFunctionPrototypes
  175.     Display*        /* display */,
  176.     long            /* enable */
  177. #endif
  178. );
  179.  
  180. Status XSpeechGetEnable(
  181. #if NeedFunctionPrototypes
  182.     Display*        /* display */,
  183.     long*            /* enable */
  184. #endif
  185. );
  186.  
  187. Status XSpeechUnload(
  188. #if NeedFunctionPrototypes
  189.     Display*        /* display */
  190. #endif
  191. );
  192.  
  193. Status XSpeechVerbose(
  194. #if NeedFunctionPrototypes
  195.     Display*        /* display */,
  196.     long            /* enable */
  197. #endif
  198. );
  199.  
  200. Status XSpeechReportRecognition(
  201. #if NeedFunctionPrototypes
  202.     Display*        /* display */,
  203.     XID            /* id */
  204. #endif
  205. );
  206.  
  207. Status XSpeechAGC(
  208. #if NeedFunctionPrototypes
  209.     Display*        /* display */,
  210.     long            /* enable */
  211. #endif
  212. );
  213.  
  214. Status XSpeechSynthesis(
  215. #if NeedFunctionPrototypes
  216.     Display*        /* display */,
  217.     char*            /* text */,
  218.     long            /* length */
  219. #endif
  220. );
  221.  
  222. Status XSpeechPlayback(
  223. #if NeedFunctionPrototypes
  224.     Display*        /* display */,
  225.     long            /* enable */
  226. #endif
  227. );
  228.  
  229. Status XSpeechTemplateDelete(
  230. #if NeedFunctionPrototypes
  231.     Display*        /* display */,
  232.     XID                    /* id */
  233. #endif
  234. );
  235.  
  236. Status XSpeechVocabularyDelete(
  237. #if NeedFunctionPrototypes
  238.     Display*        /* display */,
  239.     XID                    /* id */
  240. #endif
  241. );
  242.  
  243. Status XSpeechTrainTemplate(
  244. #if NeedFunctionPrototypes
  245.     Display*        /* display */,
  246.     XID                    /* id */
  247. #endif
  248. );
  249.  
  250. Status XSpeechUntrainTemplate(
  251. #if NeedFunctionPrototypes
  252.     Display*        /* display */,
  253.     XID                    /* id */
  254. #endif
  255. );
  256.  
  257. Status XSpeechTrainTemplateWithToken(
  258. #if NeedFunctionPrototypes
  259.     Display*        /* display */,
  260.     XID                    /* template id */,
  261.         XID                    /* token id  */
  262. #endif
  263. );
  264.  
  265. Status XSpeechUntrainTemplateWithToken(
  266. #if NeedFunctionPrototypes
  267.     Display*        /* display */,
  268.     XID                    /* template id */,
  269.         XID                    /* token id */
  270. #endif
  271. );
  272.  
  273. Status XSpeechTemplate(
  274. #if NeedFunctionPrototypes
  275.   Display*        /* display */,
  276.     char* /* name */,
  277.     char* /* action */,
  278.   unsigned char*            /* condition */,
  279.     long /* size */,
  280.     XID* /* id */
  281. #endif
  282. );
  283.  
  284. Status XSpeechTemplateUpload(
  285. #if NeedFunctionPrototypes
  286.   Display*        /* display */,
  287.     char* /* name */,
  288.     char* /* action */,
  289.     unsigned char*      /* condition */,
  290.     long /* size */,
  291.     XID* /* id */,
  292.     unsigned char* templateData ,
  293.     long templateDataLength 
  294. #endif
  295. );
  296.  
  297. Status XSpeechTemplateEnable(
  298. #if NeedFunctionPrototypes
  299.     Display*        /* display */,
  300.     XID /* id */,
  301.     unsigned char*      /* conditoin */,
  302.     long /* size */
  303. #endif
  304. );
  305.  
  306. Status XSpeechButton(
  307. #if NeedFunctionPrototypes
  308.     Display*        /* display */,
  309.     int /* direction */,
  310.     int /* value */
  311. #endif
  312. );
  313.  
  314. Status XSpeechVocabularyEnable(
  315. #if NeedFunctionPrototypes
  316.     Display*        /* display */,
  317.         XID /* vocabulary */,
  318.     unsigned char*            /* conditoin buffer */,
  319.     long            /* condition size */
  320. #endif
  321. );
  322.  
  323. Status XSpeechVocabularyAdd(
  324. #if NeedFunctionPrototypes
  325.     Display*        /* display */,
  326.         XID /* vocabulary */,
  327.     XID            /* word */
  328. #endif
  329. );
  330.  
  331. Status XSpeechVocabularyRemove(
  332. #if NeedFunctionPrototypes
  333.     Display*        /* display */,
  334.         XID /* vocabulary */,
  335.     XID            /* word */
  336. #endif
  337. );
  338.  
  339. Status XSpeechEventInterest(
  340. #if NeedFunctionPrototypes
  341.     Display*        /* display */,
  342.         unsigned long /* events */
  343. #endif
  344. );
  345.  
  346. /* functions that don't generate protocol */
  347.  
  348. Status XSpeechVocabularyCreate(
  349. #if NeedFunctionPrototypes
  350.     Display*        /* display */,
  351.         XID* /* vocabulary */
  352. #endif
  353. );
  354.  
  355. /* functions for spanel */
  356.  
  357. Status XSpeechTemplateNew(
  358. #if NeedFunctionPrototypes
  359.     Display*        /* display */,
  360.         char* /* name */,
  361.         char* /* action */,
  362.         unsigned char*      /* condition */,
  363.         long /* condition size */,
  364.         XID* /* id */
  365. #endif
  366. );
  367.  
  368. Status XSpeechTemplateInfo(
  369. #if NeedFunctionPrototypes
  370.     Display*        /* display */,
  371.         XID /* word */,
  372.         char** /* name */,
  373.         char** /* action */,
  374.         long* /* trains */,
  375.         long* /* lastScore */,
  376.         long* /* active */,
  377.         unsigned char** /* condition buffer */,
  378.         long* /* condition Size */,
  379.         char** /* origin */,
  380.         char** /* application */
  381. #endif
  382. );
  383.  
  384. Status XSpeechTemplateList(
  385. #if NeedFunctionPrototypes
  386.     Display*        /* display */,
  387.         XID** /* templates */,
  388.         long* /* nTemplates */
  389. #endif
  390. );
  391.  
  392. Status XSpeechTemplateActiveList(
  393. #if NeedFunctionPrototypes
  394.     Display*        /* display */,
  395.         XID** /* templates */,
  396.         long* /* nTemplates */
  397. #endif
  398. );
  399.  
  400. Status XSpeechSetAppName(
  401. #if NeedFunctionPrototypes
  402.     Display*        /* display */,
  403.         char* /* name */
  404. #endif
  405. );
  406.  
  407. Status XSpeechTemplateDownload(
  408. #if NeedFunctionPrototypes
  409.     Display*        /* display */,
  410.         XID /* word */,
  411.         unsigned char**    /* data */,
  412.         long*    /* length */
  413. #endif
  414. );
  415.  
  416. Status XSpeechGetToken(
  417. #if NeedFunctionPrototypes
  418.     Display*        /* display */,
  419.         XID*    /* id */
  420. #endif
  421. );
  422.  
  423. Status XSpeechFreeToken(
  424. #if NeedFunctionPrototypes
  425.     Display*        /* display */,
  426.         XID    /* id */
  427. #endif
  428. );
  429.  
  430. #ifdef __cplusplus
  431. }                        /* for C++ V2.0 */
  432. #endif
  433.  
  434. #endif
  435.